import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface BaseApiReq extends BasicModel<BaseApiReq> {
 
}

export interface BadeApiResult extends BasicModel<BadeApiResult> {

}

export const updateColumnSn = (params?: any, data?: any) => {
  
  return defHttp.postJson<BadeApiResult>({ url: adminPath+'/usercolumns/updateColumnSn', params, data});
}

export const updateColumnChecked = (params?: any, data?: any) => {
  
  return defHttp.postJson<BadeApiResult>({ url: adminPath+'/usercolumns/updateColumnChecked', params, data});
}

export const getUserColumns = (params?: any) => {
  return defHttp.get<Recordable>({ url: adminPath+'/usercolumns/getUserColumns', params });
}

